package cn.edu.hit.kg;

import jdk.nashorn.api.scripting.AbstractJSObject;

public class FakeJSObject extends AbstractJSObject {
    protected IMethod method;
    public FakeJSObject(IMethod method){
        this.method = method;
    }

    @Override
    public Object call(Object thiz, Object... args) {
        return method.call((IScriptContext) thiz, args);
    }
}
